<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?>

<?php 
	$ci = & get_instance();
	$mid = intval($_GET['mid']);
	$MATCH = $ci->match_entity->init("id", $mid);
	$TEAM_HOME = clone_($ci->team_entity->init('id', $MATCH->getHome()));
	$TEAM_AWAY = clone_($ci->team_entity->init('id', $MATCH->getAway()));
	
	$score = $ci->db->where(array( 'type'=>$MATCH->getFeedType(),'key'=>$MATCH->getFeedKey(),'match_id'=>$MATCH->getFeedMatchId() ))->get(TBL_SCORECARD)->result();
?>
<div id="content-wrap-element">
	<h3>Match: <?php echo $MATCH->getTitle();?></h3>
	
	<?php foreach($score as $item):?>
		<div class="item-element">
			<span class="title-text"><?php echo stringNumberTextFM($item->over_index);?> Over:</span>
			<span class="value"><?php echo $item->value;?></span>
		</div>
	<?php endforeach;?>		
</div>